/*
 * @Author: guoyangf
 * @Date: 2020-06-22 11:09:32
 * @LastEditTime: 2020-07-31 16:43:20
 * @Description: file content
 */
import React, { Component } from 'react';
import { base, } from 'nc-lightapp-front';
import './index.less';
const { NCBackBtn, NCDiv } = base

class TitleCtrl extends Component {
    constructor(props) {
        super();
    }

    render() {
        let title = (this.props.titleMultiLangCode && this.props.multiLang[this.props.titleMultiLangCode]) || this.props.title || this.props.multiLang['job-common-detail-title'];
        return (
            <NCDiv className="title-ctrl" areaCode={NCDiv.config.HEADER}>
                <NCBackBtn onClick={this.props.backEvent} />
                <NCDiv 
                    fieldid={title} 
                    areaCode={NCDiv.config.Title}
                    className="title-name nc-theme-common-font-c"
                >
                    {title}
                </NCDiv>
            </NCDiv>

        )
    }
}

export default TitleCtrl;